package com.wangce.entity;

import java.util.Date;
import java.util.List;

/**
 * ClassName: Order
 * Description:
 * date: 2021/11/11 19:37
 *
 * @author 凡人
 * @since JDK 1.8
 */
public class Order {
    private Long orderId;
    private Date orderTime;
    private Integer goodsId;
    private Integer userId;
    private Status orderStutus;

    private List<Goods> goods;
    private User users;
    private String goodsType;
    private Double orderPrice;

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderTime=" + orderTime +
                ", goodsId=" + goodsId +
                ", userId=" + userId +
                ", orderStutus='" + orderStutus + '\'' +
                ", goods=" + goods +
                ", users=" + users +
                ", goodsType='" + goodsType + '\'' +
                ", orderPrice=" + orderPrice +
                '}';
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public User getUsers() {
        return users;
    }

    public void setUsers(User users) {
        this.users = users;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Status getOrderStutus() {
        return orderStutus;
    }

    public void setOrderStutus(Status orderStutus) {
        this.orderStutus = orderStutus;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    public Order() {
    }

    public Order(Long orderId, Date orderTime, Integer goodsId, Integer userId, Status orderStutus, List<Goods> goods, User users, String goodsType, Double orderPrice) {
        this.orderId = orderId;
        this.orderTime = orderTime;
        this.goodsId = goodsId;
        this.userId = userId;
        this.orderStutus = orderStutus;
        this.goods = goods;
        this.users = users;
        this.goodsType = goodsType;
        this.orderPrice = orderPrice;
    }
}
